package com.taoist_awei.blog.infrastructure.mapper;

import com.taoist_awei.blog.core.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

@Mapper
@Service
public interface UserMapper {
    UserEntity findUserById(@Param("id") String id);

    UserEntity findUserByEmail(@Param("email") String email);

    void insertUser(@Param("user") UserEntity user);

    void updateUser(@Param("user") UserEntity user);
}
